package com.yunban.project.route;

import com.yunban.project.annotation.ServiceSwitch;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lijiajun
 * @date 2024/3/20
 */
@RestController
@RequestMapping("/test-api")
public class TestController {

    @GetMapping("/open")
    public String open(){
        return "Hello World - Open";
    }

    @ServiceSwitch
    @GetMapping("/close")
    public String close(){
        return "Hello World - Close";
    }
}
